#command

    # special remaps (for Zrajm)
    \240    noaction \40#            # nbsp             is remapped to space
    \255    noaction -#              # hyphen (dec 173) is remapped to dash
    ä       noaction /\^ *\\b\e[D\eOD# ä search for word at beginning of line
    å       noaction /\\b\\b\e[D\eOD## ä search for word

    # syntax: <string> <action> [extra-string] <newline>
    \t      undo-hilite             # Tab      (enable/disable search hilite)
    \40     forw-screen             # Space
    \e[6~   forw-screen             # PageDown

    # arrows (up / down / right / left)
    \e[A    back-line
    \e[B    forw-line
    \e[C    right-scroll
    \e[D    left-scroll

    # shift­arrows (up / down / right / left)
    \e[2A   goto-line
    \e[2B   goto-end
    \e[2C   invalid
    \e[2D   invalid

    # ctrl-arrows (up / down / right / left)
    \e[5A   back-screen
    \e[5B   forw-screen-force
    \e[5C   next-file
    \e[5D   prev-file


    # keypad (in application mode)
    \eOM    noaction ^M
    \eOj    noaction *
    \eOk    noaction +
    \eOm    noaction -
    \eOo    noaction /
    \eOp    noaction 0
    \eOq    noaction 1
    \eOr    noaction 2
    \eOs    noaction 3
    \eOt    noaction 4
    \eOu    noaction 5
    \eOv    noaction 6
    \eOw    noaction 7
    \eOx    noaction 8
    \eOy    noaction 9

    \e[4~   goto-end        # fix faulty End key
    \e[1~   goto-line       # fix faulty Home key


#line-edit
    # (`digit' and `set-mark' cant be used here)

    # move over character
    \eOA    up              # (application mode: up)
    \eOB    down            # (application mode: down)
    \eOC    right           # (application mode: right)
    \eOD    left            # (application mode: left)
    \e[A    up              # (default mode: up)
    \e[B    down            # (default mode: down)
    \e[C    right           # (default mode: right)
    \e[D    left            # (default mode: left)
    ^P      up              # (emacs­style: Ctrl­P - previous)
    ^N      down            # (emacs­style: Ctrl­N - next)
    ^F      right           # (emacs­style: Ctrl­F - forward)
    ^B      left            # (emacs­style: Ctrl­B - backward)

    # move over word
    \eO5C   word-right      # (application mode: Ctrl­right)
    \eO5D   word-left       # (application mode: Ctrl­left)
    \e[5C   word-right      # (default mode: Ctrl­right)
    \e[5D   word-left       # (default mode: Ctrl­left)
    \eb     word-left       # (emacs­style: Esc­b)
    \eB     word-left       # (emacs­style: Esc­B)
    \ef     word-right      # (emacs­style: Esc­f)
    \eF     word-right      # (emacs­style: Esc­F)

    # move to end­of­line
    \eO2C   end             # (application mode: Shift­Left)
    \eO2D   home            # (application mode: Shift­Right)
    \e[2C   end             # (default mode: Shift­Left)
    \e[2D   home            # (default mode: Shift­Right)
    ^A      home            # (emacs­style: Ctrl­A)
    ^E      end             # (emacs­style: Ctrl­E)
    \e[1~   home            # (terminal: Home)
    \e[4~   end             # (terminal: End)

    # delete character
    ^D      delete          # (?)
    \e[3~   delete          # (terminal)

    # delete word
    \ed     word-delete     # (emacs­style: Esc-d)
    \eD     word-delete     # (emacs­style: Esc-D)
    ^W      word-backspace  # (emacs style: Ctrl­W)
    \e^H    word-backspace  # (emacs style: Esc+Ctrl-H)
    \e^?    word-backspace  # Esc-Backspace  (faulty default for less)
    ^H      word-backspace  # Ctrl­Backspace (faulty default for less)

    # delete to part of line
    ^U      kill-line
    ^G      word-backspace ^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W^W
    ^K      word-delete    \ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed\ed

    # disabled keys
    \e[5~   insert #        # (Page Up)
    \e[6~   insert #        # (Page Down)


    # unmapped key (for experimenting)

    ^V      literal

    # keypad (in application mode)
    \eOM    literal ^M
    \eOj    literal *
    \eOk    literal +
    \eOm    literal -
    \eOo    literal /
    \eOp    literal 0
    \eOq    literal 1
    \eOr    literal 2
    \eOs    literal 3
    \eOt    literal 4
    \eOu    literal 5
    \eOv    literal 6
    \eOw    literal 7
    \eOx    literal 8
    \eOy    literal 9
